From 1efbd2edc727129f0ca3356ec61368a93cdb8fe9 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Fri, 28 Aug 2026 08:57:41 +0000 Subject: [PATCH] matplotlib_nullptr_s390x =================================================================== Gbp-Pq: Name matplotlib_nullptr_s390x.patch --- Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx index 3e6b219f0..714723e5d 100644 --- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx +++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx @@ -1023,6 +1023,12 @@ bool vtkMatplotlibMathTextUtilities::RenderOneCell(vtkImageData* image, int bbox return false; } + if (ptr == nullptr) + { + vtkErrorMacro("image returned null ScalarPointer."); + return false; + } + // Background, do not load python data if (row > pythonRowStart || col < pythonColStart || row <= pythonRowEnd || col >= pythonColEnd) -- 2.30.2